<div class="page-add-new-article page-banner-management">
    <div id="content-header">
        <h1><?php echo __d('system','Edit Subsite');?></h1>
    </div>

    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
 <?php
    echo $this->Form->create('Subsite', array('id' => 'paginate','class'=>'form-horizontal', 'action' => 'add_susite', 'url' => $this->request->here(false), 'type' => 'file',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));

    echo $this->Html->script('ckeditor/ckeditor');
    //echo $this->element('toolbar');
    ?>                                    
        
            <?php            
            $fieldsets['subsite_name'] = $this->Form->input('subsite_name', array(
                'label' => array( 'text'=> 'Subsite Name','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text'));             
            $fieldsets['sub_site'] = $this->Form->input('sub_site', array(
                'label' => array('text'=> 'Domain Name','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text'));                
                $fieldsets['theme_id'] = $this->Form->input('theme_id', array(
                'label' => array( 'text'=> 'Theme','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'empty'=>__d('system','---- Select Theme ----'),
                'options'=>$listTheme,               
                'type' => 'select'));                                                                                                            
                $fieldsets['description'] = $this->Form->input('description', array(
                'label' => array( 'text'=> 'Description','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'textarea'));   
                $fieldsets['phone'] = $this->Form->input('phone', array(
                'label' => array( 'text'=> 'Phone','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text')); 
                $fieldsets['hotline'] = $this->Form->input('hotline', array(
                'label' => array( 'text'=> 'Hotline','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text')); 
                $fieldsets['email'] = $this->Form->input('email', array(
                'label' => array( 'text'=> 'Email','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text'));                                                             
            ?>
<?php           
            $layout = array(
                array('subsite_name'),
                array('sub_site'),               
                array('theme_id'),
                array('description'),
                array('phone'),
                array('hotline'),
                array('email')                        
            );
            $layout = array(
                array(
                    'Basic setting',
                    $layout,
                )
            );
            echo $this->Layout->form($layout, $fieldsets);
    ?>        
        <div class="form-actions form-actions-two">
            <?php  echo $this->element('toolbar');?>
        </div>  
    <?php    
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>                                    
    </div>    
</div>
<!--
<div class="row-fluid">
    <div class="span12">
        <div class="widget-box">
            <div class="widget-title">
                <span class="icon">
                    <i class="icon-align-justify"></i>                                    
                </span>
                <h5>SEO OPTIONS</h5>
            </div>
            <div class="widget-content nopadding">
                <form action="#" method="get" class="form-horizontal" />
                    <div class="control-group">
                        <label class="control-label">Title</label>
                        <div class="controls">
                            <input type="text" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Keywords</label>
                        <div class="controls">
                            <input type="text" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Description</label>
                        <div class="controls">
                            <textarea></textarea>
                        </div>
                    </div>
                </form>
            </div>
        </div>    
    </div>
</div>
-->
